<?php

namespace apiend\modules\shop\controllers;

use Yii;
use apiend\components\Controller;
use common\logics\shop\SpuSpec;

/**
 * 商品规格相关接口
 *
 * @author emhome<emhome@163.com>
 * @since 2.0
 */
class SpecController extends Controller {

    /**
     * 商品规格选择查询
     * @return mixed
     */
    public function actionIndex() {
        $model = new SpuSpec();
        $model->load(Yii::$app->request->getQueryParams(), '');
        return $model->search();
    }

}
